//
//  LiveTableViewCell.m
//  BaseProject
//
//  Created by hundredsandc on 2017/10/27.
//  Copyright © 2017年 hundredsandc. All rights reserved.
//

#import "LiveTableViewCell.h"
#import "UIImageView+WebCache.h"
#import "MJExtension.h"

@interface LiveTableViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *teamOneIcon;
@property (weak, nonatomic) IBOutlet UILabel *teamOneTitle;
@property (weak, nonatomic) IBOutlet UIImageView *teamTwoIcon;
@property (weak, nonatomic) IBOutlet UILabel *teamTwoTitle;
@property (weak, nonatomic) IBOutlet UILabel *teamOneScore;
@property (weak, nonatomic) IBOutlet UILabel *teamTwoScore;
@property (weak, nonatomic) IBOutlet UILabel *typeTitle;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;


@end
@implementation LiveTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)customTeamOneIconUrl:(NSString *)url1 teamOneTitle:(NSString *)str1 teamOneScore:(NSString *)score1 teamTwoIconUrl:(NSString *)url2 teamTwoTitle:(NSString *)str2 teamTwoScore:(NSString *)score2 typeName:(NSString *)typeName time:(NSString *)time{
    [_teamOneIcon sd_setImageWithURL:[NSURL URLWithString:url1]];
    _teamOneTitle.text = str1;
    _teamOneScore.text = score1;
    
    [_teamTwoIcon sd_setImageWithURL:[NSURL URLWithString:url2]];
    _teamTwoTitle.text = str2;
    _teamTwoScore.text = score2;
    
    _typeTitle.text = typeName;
    _timeLabel.text = time;
}

@end
